﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Page/MasterPage.master" AutoEventWireup="true"
    CodeFile="AddNewCategory.aspx.cs" Inherits="Page_AddNewCategory" ValidateRequest="false" %>

<%@ Register Src="UserControl/ContentHeader.ascx" TagName="ContentHeader" TagPrefix="uc1" %>
<%@ Register Src="UserControl/Message.ascx" TagName="Message" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <uc1:ContentHeader PageTitle="Add new category" ID="ContentHeader1" GoToLabel="Manage category" GoToLink="ManageCategory.aspx" runat="server" />
    <uc2:Message ID="Message1" runat="server" />
    <div class="body_content">
        <uc2:Message ID="Message_Alert" runat="server" />
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Category.BelongTo%>:</label>
            <div class="form_field fl">
                <asp:DropDownList ID="DropDownList_Category" CssClass="select_small" runat="server">
                </asp:DropDownList>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Category.CategoryName%>:</label>
            <div class="form_field fl">
                <asp:TextBox ID="TextBox_CategoryName" runat="server" CssClass="textbox_medium"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="input"
                    runat="server" ErrorMessage="*" ControlToValidate="TextBox_CategoryName"></asp:RequiredFieldValidator>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Category.Description%>:</label>
            <div class="form_field fl">
                <asp:TextBox ID="TextBox_Description" runat="server" TextMode="MultiLine" CssClass="textarea_medium"
                    MaxLength="400" Height="60"></asp:TextBox>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important">*</span><%= Resources.Category.Order%>:</label>
            <div class="form_field fl">
                <asp:TextBox ID="TextBox_Order" rel='uint' runat="server" CssClass="textbox_smallest"></asp:TextBox>
            </div>
            <div class="clr">
            </div>
        </div>
        <div class="formrow">
            <label class="lb_medium fl right">
                <span class="important"></span>
            </label>
            <div class="form_field fl">
                <asp:Button ValidationGroup="input" ID="Button_Save" CssClass="button" runat="server"
                    Text="Save" OnClick="Button_Save_Click" />
            </div>
            <div class="clr">
            </div>
        </div>
    </div>
</asp:Content>
